//
//  LYRadioHelper.h
//  LY
//
//  Created by lanou3g on 15/12/15.
//  Copyright © 2015年 梁媛. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@class LYRadioHelper;
@protocol LYRadioHelperDelegate <NSObject>
//播放结束
- (void)RadioPlayEndWith:(LYRadioHelper *)lyradioHelper;
//播放到什么时候了
- (void)playerTime:(float)time LYRadiohelper:(LYRadioHelper *)lyRadioHelper;
@end
@interface LYRadioHelper : NSObject
//是否正在播放
@property(nonatomic,assign,readonly,getter=isPlaying)BOOL Playing;
@property(nonatomic,weak)id<LYRadioHelperDelegate>delegate;

//单例
+ (instancetype)shareLYRadioHelper;
//播放、暂停
- (void)playOrPause;
//播放（给URL播放）
- (void)playStringWithUrl:(NSString *)url;
//从某个时刻开始播放
- (void)seekTimePlayWithTime:(float)time;

@end
